package com.example.blog.Service;import com.example.blog.entity.UserInfo;import com.example.blog.mapper.UserMapper;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;@Servicepublic class UserService {    @Autowired    private UserMapper mapper;    public int userReg(UserInfo user)    {        return mapper.userReg(user);    }    public UserInfo getUserByUsername(String username) {return mapper.getUserByUsername(username);}    public UserInfo getUserById(Integer userid) { return mapper.getUserById(userid);}}